package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.huawei.hmf.orb.aidl.impl.GetServiceRequest;
import o.ffv.b;

public interface ffs extends IInterface {

    public static abstract class e extends Binder implements ffs {

        static class a implements ffs {
            private IBinder ˎ;

            a(IBinder iBinder) {
                this.ˎ = iBinder;
            }

            public IBinder asBinder() {
                return this.ˎ;
            }

            public void ॱ(GetServiceRequest getServiceRequest, ffv o_ffv) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.hmf.orb.aidl.IRemoteServiceBroker");
                    if (getServiceRequest != null) {
                        obtain.writeInt(1);
                        getServiceRequest.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    obtain.writeStrongBinder(o_ffv != null ? o_ffv.asBinder() : null);
                    this.ˎ.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public e() {
            attachInterface(this, "com.huawei.hmf.orb.aidl.IRemoteServiceBroker");
        }

        public static ffs ˏ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.hmf.orb.aidl.IRemoteServiceBroker");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof ffs)) {
                return new a(iBinder);
            }
            return (ffs) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.huawei.hmf.orb.aidl.IRemoteServiceBroker";
            switch (i) {
                case 1:
                    GetServiceRequest getServiceRequest;
                    parcel.enforceInterface(str);
                    if (parcel.readInt() != 0) {
                        getServiceRequest = (GetServiceRequest) GetServiceRequest.CREATOR.createFromParcel(parcel);
                    } else {
                        getServiceRequest = null;
                    }
                    ॱ(getServiceRequest, b.ˎ(parcel.readStrongBinder()));
                    parcel2.writeNoException();
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ॱ(GetServiceRequest getServiceRequest, ffv o_ffv) throws RemoteException;
}
